from appium.webdriver.common.mobileby import MobileBy

from app_first_pratice.base_page import BasePage
from app_first_pratice.contract_page import ContractPage


class MainPage(BasePage):
    def goto_contract(self):
        # self.find(MobileBy.XPATH,"//*[@text='通讯录']").click()
        self.pares_yaml('./main_page.yaml','goto_contract')
        return ContractPage()